package com.opc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.opc.dto.DeviceRecordDto;
import com.opc.entity.DeviceRecordLatest;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author 作者
 * @since 2023-03-14
 */
@Mapper
public interface DeviceRecordLatestMapper extends BaseMapper<DeviceRecordLatest> {

    List<DeviceRecordLatest> selectAllLatestRecordByIds(@Param("dList") List<String> dList);

    IPage<DeviceRecordDto> getRecordListByLine(Page<DeviceRecordDto> page, @Param("proLine") String proLine);

    List<DeviceRecordDto> getRecordListByLineNoPages(@Param("proLine")String proLine);

    List<DeviceRecordLatest> selectAllRecords();
}
